package cn.dinghu.pro.mapper;

import cn.dinghu.pro.entity.Nurse;
import cn.dinghu.pro.entity.Orders;
import cn.dinghu.pro.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 护工表 Mapper 接口
 * </p>
 *
 * @author dinghu
 * @since 2025-10-14
 */
@Mapper
public interface NurseMapper extends BaseMapper<Nurse> {
    public int update(Nurse nurse);

    public int addAll(Nurse nurse);

    public int updateStatus(@Param("status") int status, @Param("nurseId") int id);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     * @throws Exception
     */
    Nurse doLogin(@Param("username") String username, @Param("password") String password) throws Exception;

    // 查询列表
    List<Orders> getAppInfoList(@Param("realName") String realName,@Param("status") String status,@Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);
    // 获取总条数
    int getAppInfoCount(@Param("realName") String realName,@Param("status") String status);

    int getCountPj(@Param("good") Integer good,@Param("bad") Integer bad,@Param("goodbad") Integer goodbad,@Param("nuserId") Integer nuserId);
}
